package com.open.demo;

import android.util.Log;
import android.view.Choreographer;

import org.json.JSONObject;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author: hailong.qiu hailong.qiu@xgimi.com
 * @Maintainer: hailong.qiu hailong.qiu@xgimi.com
 * @Date: 2021/10/13
 * @Copyright: 2021 www.xgimi.com Inc. All rights reserved.
 */
public class TestData {

    public static void main() {
        Choreographer.getInstance().postFrameCallback(new Choreographer.FrameCallback() {
            long lastFrameTimeNanos = 0;
            long currentFrameTimeNanos = 0;
            @Override
            public void doFrame(long frameTimeNanos) {

            }
        });
        Map<String, Object> dataMap = new HashMap<>();
        dataMap.put("name", "hailong.qiu");
        dataMap.put("age", 18);
        JSONObject jsonObject = new JSONObject(dataMap);
        Log.d("hailong.qiu","json str:" + jsonObject.toString());
    }

}